
export function _instance(example:any, type:any){
    let pro = type.prototype;
    example = example.__proto__;
    while (true) {
        if (example === null)
            return false;
        if (pro === example)
            return true;
        example = example.__proto__;
    }
}

export function _copy(src:any, target:any) {
    if(!target) return src;
    for(let prop in src) {
        target[prop] = src[prop];
    }
    return target;
}
